package com.ict.ms.trackPlayBack.facade.common; /**
 * Created by chitanda on 2017/10/27.
 */

public class testCircle {
    public static void main(String argus[])
    {
        //测试圆
        CircleWithLongitudeCrossed180 circle = new CircleWithLongitudeCrossed180(-179.391235,41.118975,5000000);
        System.out.println(circle.containsPoint(-177.119403,41.689244));
        System.out.println(circle.containsPoint(30.0,20.0));

        //测试扇形
        CircularSectorWithLongitudeCrossed180 circularSector = new CircularSectorWithLongitudeCrossed180(-179.391235,41.118975,5000000,5,90);
        CircularSectorWithLongitudeCrossed180 circularSector180 = new CircularSectorWithLongitudeCrossed180(-179.391235,41.118975,5000000,300,90);
        System.out.println(circularSector.containsPoint(-177.119403,41.689244));
        System.out.println(circularSector.containsPoint(-177.757880,39.403765));
        System.out.println(circularSector180.containsPoint(-177.1194030,41.689244));
        System.out.println(circularSector180.containsPoint(-178.757880,39.403765));

        // 测试扇环
        AnnularSectorWithLongitudeCrossed180 annularSector = new AnnularSectorWithLongitudeCrossed180(-179.391235,41.118975,500000,5,90,300000);
        AnnularSectorWithLongitudeCrossed180 annularSector180 = new AnnularSectorWithLongitudeCrossed180(-179.391235,41.118975,500000,5,90,300000);
        System.out.println(annularSector.containsPoint(-175.763248,43.460682));
        System.out.println(annularSector.containsPoint(-177.871859,41.995571));
        System.out.println(annularSector180.containsPoint(-175.763248,43.460682));
        System.out.println(annularSector180.containsPoint(-177.871859,41.995571));
    }
}
